package com.openlogic.common.plugins.spi.plugin;

/**
 * @ClassName: SPIIdentify
 * @Description: SPI插件标识实体，用于决定不同插件加载的顺序以及覆盖规则
 * @author weiyongpeng
 * @date 2025年1月23日 下午8:51:29
 */
public class SPIIdentify {

	private static final int DEFAULT_PRIORITY = 0;

	/**
	 * 插件名称
	 */
	private String name;

	/**
	 * 插件加载优先级，默认是0，最低
	 */
	private int priority = DEFAULT_PRIORITY;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public SPIIdentify(String name, int priority) {
		super();
		this.name = name;
		this.priority = priority;
	}

	public SPIIdentify() {
		super();
	}

}
